package com.boot.config.datasource

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource

/**
 * @author kawins
 * createTime 2018-12-07 16:04
 */
class DynamicDataSource : AbstractRoutingDataSource() {
    override fun determineCurrentLookupKey(): Any {
        return DatabaseContextHolder.databaseType
    }
}
